package com.dsl.dslallinone.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * DSL查询通用Mapper
 */
@Mapper
@Repository
public interface DslQueryMapper {

    /**
     * 执行动态SQL查询
     */
    @Select("${sql}")
    List<Map<String, Object>> executeDynamicSql(@Param("sql") String sql);
}
